package com.fahai.web.dao;

import com.fahai.common.CommonMapper;
import com.fahai.web.entity.LawyerSkill;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface LawyerSkillDao extends CommonMapper<LawyerSkill> {

    public LawyerSkill selectByPrimaryId(Integer skillId);

    public void batchUpdateLawyerSkill(List<LawyerSkill> lss);

    public int insert(LawyerSkill lawyerSkill);

    public List<LawyerSkill> selectListNotHonor();

    public  List<Map<String,Object>> selectProductInfoList();

    public List<Map<String,Object>> selectPlatsForlawyer(List<Integer> list);


    //查询律师的平台信息
    public List<Map<String,Object>> selectPlatsForlawyerOne(Integer lawyerid);

    //删除平台和律师关联数据
    public void deleteServicesGroup(Integer lawyerid);

    //批量保存平台和律师关联数据
    public void insertServicesGroupBatch(@Param("list")List<Integer> list, @Param("lawyerid") Integer lawyerid);

    //查询技能表的所有技能
    public List<Map<String,Object>> selectPersonAdvantage();
}